import axios from 'axios'
import config from '@/config'
export function getLidsByPid(data) {
    return axios({
        method: 'post',
        url: config.serverURI + config.api.get_lids_by_pid,
        data
    })
}

export function getPidsByLid(data) {
    return axios({
        method: 'post',
        url: config.serverURI + config.api.get_pids_by_lid,
        data
    })
}

export function getAllEvent(region) {
    const url = region ? config.serverURI + config.api.all_events + '?region=' + region : config.serverURI + config.api.all_events
    return axios({
        method: 'get',
        url,
    })
}

export function syncListingInfo(data) {
    return axios({
        method: 'post',
        url: config.serverURI + config.api.sync_listing_info,
        data
    })
}